﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AnimationEnd : Condition
{
    public Animator animator;
    public string name;

    void Update()
    {
        //Debug.Log( "aaa" + animator.GetCurrentAnimatorStateInfo(0).normalizedTime );
        if (animator.GetCurrentAnimatorStateInfo(0).IsName(name) && animator.GetCurrentAnimatorStateInfo(0).normalizedTime >= 0.9f)
        {
            ToJump = true;
        }
    }
}
